# $Id: PKGBUILD 85412 2013-03-01 10:40:26Z andrea $
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Tarinaky <tarinaky@hunity.co.uk>

pkgname=skype-call-recorder
pkgver=0.8
pkgrel=3
pkgdesc="Open source tool that allows you to record your Skype calls on Linux"
arch=('i686' 'x86_64')
url="http://atdot.ch/scr/"
license=('GPL')
depends=('qt4' 'libvorbis' 'lame' 'id3lib' 'hicolor-icon-theme')
makedepends=('cmake')
install=skype-call-recorder.install
source=(http://atdot.ch/scr/files/$pkgver/$pkgname-$pkgver.tar.gz
        skype-call-recorder-0.8-dso-fix.patch)
sha256sums=('b115f728e09602cca7aa51479faa868de1f9b7cf887ed3d7c82f4935309c32c6'
            '1cde36728cf88f479bf317efcacd0cdca8fc7bcd74a6f273beb150ecf8c781da')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  patch -Np1 -i "$srcdir/skype-call-recorder-0.8-dso-fix.patch"

  cmake -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
